/*
 * sortObject.scala
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package csvutils

class sortNumberObject(val s:String,val key:String,val value:Double)extends Ordered[sortNumberObject]{

    def compare(that:sortNumberObject):Int ={
        if(this.value==that.value){
            0
        }else if(this.value<that.value){
            -1
        }else{
            1
        }
    }

    override def toString():String = s
}
